<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.d1{
				width: 400px;
				height: 200px;
				background-color: pink;
				border: 2px solid red;
				text-align: center;
			}
			.d2{
				width: 398px;
				height: 30px;
				background-color: orange;
				border: 2px solid red;
				margin-top: -1px;
				margin-left: -1px;
			}
			.btn{
				background-color: orange;
				width: 130px;
				height: 35px;
				margin-top: 15px;
				margin-left: -25px;
				border-radius: 10px 10px 10px 10px;
				border: 0px;
				font-size: 22px;
				color: white;
			}
			.name,.pwd{
				width: 200px;
				height: 30px;
				margin-top: 15px;
			}
			.pwd{
				margin-left: 16px;
			}
			.dd{
				background-color: #00FFFF;
				border: 1px solid red;
			}
		</style>
	</head>
	<body>
		<div class="d1">
			<div class="d2"></div>
			<div class="d3">
			用户名:<input class="name" type="text"><br>
			密码:<input class="pwd" type="password"><br>
			<input class="btn" type="button" value="登录"></div>
			</div>
			<script type="text/javascript">
				$(function(){				
					$("input").focus(function(){
						$(this).addClass("dd");
					});
				})
				$('input').blur(function(){
					$(this).removeClass("dd");
				 });
				
			</script>
		
	</body>
</html>
